public class Solution4 {
    //371. 两整数之和
    public int getSum(int a, int b) {

        while (b != 0) {
            int x = a ^ b;
            int y = a & b;
            a = x;
            b = y << 1;
        }
        return a;
    }
}
